home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / RESOURCE.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  48 lines

  1. /*
  2.  * Process resource limits
  3.  *
  4.  * This file is subject to the terms and conditions of the GNU General Public
  5.  * License.  See the file "COPYING" in the main directory of this archive
  6.  * for more details.
  7.  *
  8.  * Copyright (C) 1995, 1996 by Ralf Baechle
  9.  */
  10. #ifndef __ASM_MIPS_RESOURCE_H
  11. #define __ASM_MIPS_RESOURCE_H
  12.  
  13. /*
  14.  * Resource limits
  15.  */
  16. #define RLIMIT_CPU 0            /* CPU time in ms */
  17. #define RLIMIT_FSIZE 1            /* Maximum filesize */
  18. #define RLIMIT_DATA 2            /* max data size */
  19. #define RLIMIT_STACK 3            /* max stack size */
  20. #define RLIMIT_CORE 4            /* max core file size */
  21. #define RLIMIT_NOFILE 5            /* max number of open files */
  22. #define RLIMIT_AS 6            /* mapped memory */
  23. #define RLIMIT_RSS 7            /* max resident set size */
  24. #define RLIMIT_NPROC 8            /* max number of processes */
  25. #define RLIMIT_MEMLOCK 9        /* max locked-in-memory address space */
  26.  
  27. #define RLIM_NLIMITS 10            /* Number of limit flavors.  */
  28.  
  29. #ifdef __KERNEL__
  30.  
  31. #define INIT_RLIMITS                    \
  32. {                            \
  33.     {LONG_MAX, LONG_MAX},                \
  34.     {LONG_MAX, LONG_MAX},                \
  35.     {LONG_MAX, LONG_MAX},                \
  36.     {_STK_LIM, _STK_LIM},                \
  37.     {       0, LONG_MAX},                \
  38.     {NR_OPEN, NR_OPEN},                \
  39.     {LONG_MAX, LONG_MAX},                \
  40.     {LONG_MAX, LONG_MAX},                \
  41.     {MAX_TASKS_PER_USER, MAX_TASKS_PER_USER},    \
  42.     { LONG_MAX, LONG_MAX },                \
  43. }
  44.  
  45. #endif /* __KERNEL__ */
  46.  
  47. #endif /* __ASM_MIPS_RESOURCE_H */
  48.